<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/core.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
function dosubmit() {
	var fm=document.getElementById("fm");
	fm.submit();
}
</script>
</head>
<body>
	<form id="fm" action="FindStudentServlet" method="get">
		<input type="text" name="stuName" value=""> <input
			type="submit" value="搜索" onclick="dosubmit()">
	</form>
	<table>
		<thead>
			<tr>
				<th>序号</th>
				<th>学号</th>
				<th>姓名</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach varStatus="i" var="stu" items="${requestScope.allStudents}">
				<tr>
					<td>${i.count} </td>
					<td>${stu.stuId} </td>
					<td>${stu.stuName} </td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</body>
</html>